package cn.czh.controller;

import cn.czh.service.IDeepSeekService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/deepseek")
public class ChatController {

    @Resource
    private IDeepSeekService deepSeekService;

    @PostMapping("/send")
    public String send(String query) {
        return deepSeekService.generateResponse(query);
    }

}